447bdb0af8d2c9021d21a1c85fed89d7c0d22cbd,jackson1/src/main/java/com/webcohesion/enunciate/modules/jackson1/model/util/JacksonUtil.java,JacksonUtil,findAdapterType,#DecoratedTypeMirror#Element#PackageElement#EnunciateJackson1Context#,94
Before Change
if (typeAdapterInfo != null) {
final XmlJavaTypeAdapter finalInfo = typeAdapterInfo;
DecoratedDeclaredType adapterTypeMirror = (DecoratedDeclaredType) Annotations.mirrorOf(new Callable<Class<?>>() {
@Override
public Class<?> call() throws Exception {
return finalInfo.value();
}
}, env);
AdapterType adapterType = new AdapterType(adapterTypeMirror, context);
if ((adaptedType instanceof DeclaredType && adapterType.canAdapt(adaptedType, context.getContext())) ||
(maybeContainedAdaptedType != adaptedType && adapterType.canAdapt(maybeContainedAdaptedType, context.getContext()))) {
return adapterType;
}
throw new EnunciateException(referer + ": adapter " + adapterTypeMirror + " does not adapt " + maybeContainedAdaptedType);
}
}
After Change
if (typeAdapterInfo != null) {
final XmlJavaTypeAdapter finalInfo = typeAdapterInfo;
DecoratedTypeMirror adapterTypeMirror = Annotations.mirrorOf(new Callable<Class<?>>() {
@Override
public Class<?> call() throws Exception {
return finalInfo.value();
}
}, env);
if (adapterTypeMirror instanceof DecoratedDeclaredType) {
return new AdapterType((DecoratedDeclaredType) adapterTypeMirror, context);
}
}
}